package com.ruoyi.sts.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备对象 sts_device
 * 
 * @author maoxiaodong
 * @date 2025-04-24
 */
public class StsDevice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String name;

    /** 设备类型 */
    @Excel(name = "设备类型")
    private String type;

    /** 一级部门ID */
    @Excel(name = "一级部门ID")
    private Long deptId1;

    /** 一级部门名称 */
    @Excel(name = "一级部门名称")
    private String deptName1;

    /** 二级部门ID */
    @Excel(name = "二级部门ID")
    private Long deptId2;

    /** 二级部门名称 */
    @Excel(name = "二级部门名称")
    private String deptName2;

    /** 三级部门ID */
    @Excel(name = "三级部门ID")
    private Long deptId3;

    /** 三级部门名称 */
    @Excel(name = "三级部门名称")
    private String deptName3;

    /** 设备IP */
    @Excel(name = "设备IP")
    private String ipAddress;

    /** 设备识别码 */
    @Excel(name = "设备识别码")
    private String idCode;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date activeStartDate;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date activeEndTime;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 最后发送时间 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "最后发送时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date lastSendTime;


    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }

    public void setDeptId1(Long deptId1) 
    {
        this.deptId1 = deptId1;
    }

    public Long getDeptId1() 
    {
        return deptId1;
    }

    public void setDeptName1(String deptName1) 
    {
        this.deptName1 = deptName1;
    }

    public String getDeptName1() 
    {
        return deptName1;
    }

    public void setDeptId2(Long deptId2) 
    {
        this.deptId2 = deptId2;
    }

    public Long getDeptId2() 
    {
        return deptId2;
    }

    public void setDeptName2(String deptName2) 
    {
        this.deptName2 = deptName2;
    }

    public String getDeptName2() 
    {
        return deptName2;
    }

    public void setDeptId3(Long deptId3) 
    {
        this.deptId3 = deptId3;
    }

    public Long getDeptId3() 
    {
        return deptId3;
    }

    public void setDeptName3(String deptName3) 
    {
        this.deptName3 = deptName3;
    }

    public String getDeptName3() 
    {
        return deptName3;
    }

    public void setIpAddress(String ipAddress) 
    {
        this.ipAddress = ipAddress;
    }

    public String getIpAddress() 
    {
        return ipAddress;
    }

    public void setIdCode(String idCode) 
    {
        this.idCode = idCode;
    }

    public String getIdCode() 
    {
        return idCode;
    }

    public void setActiveStartDate(Date activeStartDate) 
    {
        this.activeStartDate = activeStartDate;
    }

    public Date getActiveStartDate() 
    {
        return activeStartDate;
    }

    public void setActiveEndTime(Date activeEndTime) 
    {
        this.activeEndTime = activeEndTime;
    }

    public Date getActiveEndTime() 
    {
        return activeEndTime;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public Date getLastSendTime() {
        return lastSendTime;
    }

    public void setLastSendTime(Date lastSendTime) {
        this.lastSendTime = lastSendTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("type", getType())
            .append("deptId1", getDeptId1())
            .append("deptName1", getDeptName1())
            .append("deptId2", getDeptId2())
            .append("deptName2", getDeptName2())
            .append("deptId3", getDeptId3())
            .append("deptName3", getDeptName3())
            .append("ipAddress", getIpAddress())
            .append("idCode", getIdCode())
            .append("activeStartDate", getActiveStartDate())
            .append("activeEndTime", getActiveEndTime())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
